package com.ffcs.web.model.entity;
// default package

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

/**
 * Study entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wechat_study")
public class Study implements java.io.Serializable {

	// Fields

	private Integer id;
	private String counseTel;
	private String counseName;
	private String studyTitle;
	private String studyUrl;
	private String studyLabel;
	private String studyDirection;
	private Integer maxStudent;
	private Integer signStudent;
	private Date startStudy;
	private Date endStudy;
	private Double studyPrice;
	private String studyContent;
	private String studyStatus;
	private String studyCity;
	private String studyType;
	private String contentUrl;
	@Transient
	private String startStudyStr;
	@Transient
	private String endStudyStr;
	private Short isBanner;
	private String publisher;
	private Date createTime;
	private long sort;

	// Constructors

	/** default constructor */
	public Study() {
	}

	/** full constructor */
	public Study(Integer id, String counseTel, String counseName,
			String studyTitle, String studyUrl, String studyLabel,
			String studyDirection, Integer maxStudent, Integer signStudent,
			Timestamp startStudy, Timestamp endStudy, Double studyPrice,
			String studyContent, String studyStatus) {
		this.id = id;
		this.counseTel = counseTel;
		this.counseName = counseName;
		this.studyTitle = studyTitle;
		this.studyUrl = studyUrl;
		this.studyLabel = studyLabel;
		this.studyDirection = studyDirection;
		this.maxStudent = maxStudent;
		this.signStudent = signStudent;
		this.startStudy = startStudy;
		this.endStudy = endStudy;
		this.studyPrice = studyPrice;
		this.studyContent = studyContent;
		this.studyStatus = studyStatus;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "counseTel", nullable = false, length = 20)
	public String getCounseTel() {
		return this.counseTel;
	}

	public void setCounseTel(String counseTel) {
		this.counseTel = counseTel;
	}

	@Column(name = "counseName", nullable = false, length = 100)
	public String getCounseName() {
		return this.counseName;
	}

	public void setCounseName(String counseName) {
		this.counseName = counseName;
	}

	@Column(name = "studyTitle", nullable = false, length = 100)
	public String getStudyTitle() {
		return this.studyTitle;
	}

	public void setStudyTitle(String studyTitle) {
		this.studyTitle = studyTitle;
	}

	@Column(name = "studyUrl", nullable = false, length = 200)
	public String getStudyUrl() {
		return this.studyUrl;
	}

	public void setStudyUrl(String studyUrl) {
		this.studyUrl = studyUrl;
	}

	@Column(name = "studyLabel", nullable = false, length = 100)
	public String getStudyLabel() {
		return this.studyLabel;
	}

	public void setStudyLabel(String studyLabel) {
		this.studyLabel = studyLabel;
	}

	@Column(name = "studyDirection", nullable = false, length = 10)
	public String getStudyDirection() {
		return this.studyDirection;
	}

	public void setStudyDirection(String studyDirection) {
		this.studyDirection = studyDirection;
	}

	@Column(name = "maxStudent", nullable = false)
	public Integer getMaxStudent() {
		return this.maxStudent;
	}

	public void setMaxStudent(Integer maxStudent) {
		this.maxStudent = maxStudent;
	}

	@Column(name = "signStudent", nullable = false)
	public Integer getSignStudent() {
		return this.signStudent;
	}

	public void setSignStudent(Integer signStudent) {
		this.signStudent = signStudent;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "startStudy", nullable = false, length = 19)
	public Date getStartStudy() {
		return this.startStudy;
	}

	public void setStartStudy(Date startStudy) {
		this.startStudy = startStudy;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "endStudy", nullable = false, length = 19)
	public Date getEndStudy() {
		return this.endStudy;
	}

	public void setEndStudy(Date endStudy) {
		this.endStudy = endStudy;
	}

	@Column(name = "studyPrice", nullable = false, precision = 15, scale = 4)
	public Double getStudyPrice() {
		return this.studyPrice;
	}

	public void setStudyPrice(Double studyPrice) {
		this.studyPrice = studyPrice;
	}

	@Column(name = "studyContent", nullable = false, length = 1000)
	public String getStudyContent() {
		return this.studyContent;
	}

	public void setStudyContent(String studyContent) {
		this.studyContent = studyContent;
	}

	@Column(name = "studyStatus", nullable = false, length = 10)
	public String getStudyStatus() {
		return this.studyStatus;
	}

	public void setStudyStatus(String studyStatus) {
		this.studyStatus = studyStatus;
	}

	@Column(name = "studyCity", nullable = false, length = 10)
	public String getStudyCity() {
		return studyCity;
	}

	public void setStudyCity(String studyCity) {
		this.studyCity = studyCity;
	}

	@Column(name = "studyType", nullable = false, length = 4)
	public String getStudyType() {
		return studyType;
	}

	public void setStudyType(String studyType) {
		this.studyType = studyType;
	}

	@Column(name = "contentUrl", length = 100)
	public String getContentUrl() {
		return contentUrl;
	}

	public void setContentUrl(String contentUrl) {
		this.contentUrl = contentUrl;
	}

	@Transient
	public String getStartStudyStr() {
		return startStudyStr;
	}

	public void setStartStudyStr(String startStudyStr) {
		this.startStudyStr = startStudyStr;
	}

	@Transient
	public String getEndStudyStr() {
		return endStudyStr;
	}

	public void setEndStudyStr(String endStudyStr) {
		this.endStudyStr = endStudyStr;
	}

	@Column(name = "isBanner")
	public Short getIsBanner() {
		return isBanner;
	}

	public void setIsBanner(Short isBanner) {
		this.isBanner = isBanner;
	}

	@Column(name = "publisher", length = 200)
	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "createTime", length = 19)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "sort")
	public long getSort() {
		return sort;
	}

	public void setSort(long sort) {
		this.sort = sort;
	}
}